/**
 * 
 */
package systole.persistence.brokersInterface;

import java.util.List;

import systole.domain.clinicalInformation.Sport;
import systole.exceptions.ExceptionDAO;

/**
 * @author jmj
 *
 */
public interface SportBroker {

    /**
     * @param sport
     * @throws ExceptionDAO
     */
    public void insert(Sport sport) throws ExceptionDAO;

    /**
     * @param sport
     * @throws ExceptionDAO
     */
    public void update(Sport sport) throws ExceptionDAO;

    /**
     * @return List of sports.
     * @throws ExceptionDAO
     */
    public List<Sport> getAllSports() throws ExceptionDAO;

    /**
     *
     * @param name
     * @param id
     * @return if sport exist
     * @throws ExceptionDAO
     */
    public boolean existSport(String name, Integer id) throws ExceptionDAO;

    /**
     * 
     * @param name
     * @return
     * @throws ExceptionDAO
     */
    public Sport getSportByName(String name)throws ExceptionDAO ;
}
